const Goods = require("./Goods");

const SkuGoods = function (GoodsInfo, skuId, skuName, skuThumb, skuPrice, realPrice) {
  var that = Goods(GoodsInfo.goodsId, GoodsInfo.yanxuanId, GoodsInfo.goodsName, GoodsInfo.goodsPrice, GoodsInfo.goodsThumb, GoodsInfo.description);
  that._goods = GoodsInfo;
  that.skuId = skuId;
  that.skuName = skuName;
  that.skuPrice = skuPrice;
  that.skuThumb = skuThumb;
  that.realPrice = realPrice;
  return that;
};
module.exports = SkuGoods;
